Set

Function

This API is used for Settings Alarm > PTZLinkageControl(cloud dedicated) Parameters.

Request Message

Parameter Description

Table 1
ParameterRangeTypeDescription
channel_infoobjectFor details, see Table 2
Table 2
ParameterRangeTypeDescription
ptz_linkage_name"Mode_Preset"
"Mode_Trace"
"Mode_Pattern_Scan"
stringLinkage ptz type, 0: preset point, 1: track cruise, 2: pattern scan
ptz_linkage_num0-255intNumber of the ptz type
ptz_linkage_time0-600intptz linkage time
preset_dwell_time0-600intResidence time of ptz linkage preset point
alarm_source1-1064intnvr linkage alarm channel(Channel 1, 2, 3, 4, 5, 6...)
alarm_type0-128intType of the nvr linkage alarm(for example, io fd cc various, but do not worry about the type)

Sample:

POST /API/LinkageConfig/PTZLinkageControl/Set HTTP/1.1
{
    "data": {
        "channel_info": {
            "CH1": {
                "ptz_linkage_name": "Mode_Preset",
                "preset_dwell_time": 1,
                "ptz_linkage_num": 0,
                "ptz_linkage_time": 30
            }
        }
    },
    "version": "1.0"
}

Response Message

Sample:

HTTP/1.1 200 OK
Content-Type: application/json
{
    "result": "success",
    "data": {}
}

Error Code

See Response Messages Body and Common error_code for more information.